/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Email;
import com.intelligent.ispc.foundation.mail.EmailStatus;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Julia.Zhou on 2015/12/2.
 */
public interface EmailDao extends PagingAndSortingRepository<Email, Long>, JpaSpecificationExecutor<Email> {

	Email findById(Long id);

	List<Email> findByStatus(EmailStatus status);
}
